NativeAdLoader

class NativeAdLoader constructor(context: Context)

Class containing controls for native ad loading.

Parameters

context

The activity context used to retrieve the application context

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard

Cancel loading the native ad.

Link copied to clipboard
suspend fun loadAd(adRequest: AdRequest): <Error class: unknown class>
fun loadAd(adRequest: AdRequest, listener: NativeAdLoadListener)
suspend fun loadAd(adRequest: AdRequest, options: NativeAdOptions): <Error class: unknown class>
fun loadAd(adRequest: AdRequest, options: NativeAdOptions, listener: NativeAdLoadListener)

Start loading the native ad on a background thread.

suspend fun loadAd(adUnitId: String, readyResponse: String): <Error class: unknown class>
fun loadAd(adUnitId: String, readyResponse: String, listener: NativeAdLoadListener)
suspend fun loadAd(adUnitId: String, readyResponse: String, options: NativeAdOptions): <Error class: unknown class>
fun loadAd(adUnitId: String, readyResponse: String, options: NativeAdOptions, listener: NativeAdLoadListener)

Start loading the native ad on a background thread with ready response.